<%@ page contentType="text/html;charset=UTF-8"%>

<%
	String context = request.getContextPath();
%>

<html>
<head>
	<script type="text/javascript" charset="utf-8" src="kindeditor.js"></script>
	<script type="text/javascript" charset="utf-8" src="kindeditor-min.js"></script>

	<script type="text/javascript">
	
	//imageUploadJson : '<%=context%>/component/kindeditor/file_upload_json.jsp',
	//imageUploadJson : '<%=context%>/component/kindeditor/servlet/kindeditorservlet',//?domain=product
	KE.show({
		id : 'REMARK',
		imageUploadJson : '<%=context%>/component/kindeditor/file_upload_json.jsp',
		fileManagerJson : '<%=context%>/component/kindeditor/file_manager_json.jsp',
		allowFileManager : true,
		afterCreate : function(id) {
			KE.event.ctrl(document, 13, function() {
				KE.util.setData(id);
			});
			KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
				KE.util.setData(id);
			});
		}
	});
	
	function doSave() {
		var remark = KE.util.getData("REMARK");
		alert(remark);
	}
	
	</script>
</head>

<body>

<textarea rows="5" cols="70" name="REMARK" id="REMARK" style="width: 100%; height: 200px; visibility: hidden;">
初始值
</textarea>

<input type="button" value="保存" onclick="doSave()" />

</body>

</html>